package com.yuyou.tas.service.api.feedback.vo.resp;

import java.text.SimpleDateFormat;
import java.util.Date;

public class FeedbackNameResp {
    private Long id;
    private String className;
    private Date createTime;
    private Date fCreateTime;
    private Long feedbackClassId;
    private Long teacherId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getFeedbackClassId() {
        return feedbackClassId;
    }

    public void setFeedbackClassId(Long feedbackClassId) {
        this.feedbackClassId = feedbackClassId;
    }

    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }

    public Date getfCreateTime() {
        return fCreateTime;
    }

    public void setfCreateTime(Date fCreateTime) {
        this.fCreateTime = fCreateTime;
    }

    public String getFeedbackName() {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");
        String dateString = formatter.format(this.createTime);
        return this.className + "反馈" + dateString;
    }

    public String getTimeForamt(){
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return  dateFormat.format(this.fCreateTime);
    }
}
